<?php 
include("required_header.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>"/>
<link href="<? echo SITE_URL?>css/default/ask.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
g_site_url='<?=SITE_URL?>';g_prefix='<?=$setting['seo_prefix']?>';g_suffix='<?=$setting['seo_suffix']?>';editor_items='<?=$setting['editor_items']?>';
</script>
<script src="<?=SITE_URL?>js/jquery.js" type="text/javascript"></script>
<script src="<?=SITE_URL?>js/dialog.js" type="text/javascript"></script>
<script src="<?=SITE_URL?>js/common.js" type="text/javascript"></script>

<?=$setting['seo_headers']?>
</head>
<body>
<?=$setting['seo_headers']?>
</head>
<body>
<div class="top">

<div class="top1 blake">
<div class="top1right">
            <a href="<?=SITE_URL?>">拾贝首页</a><span>︱</span>&nbsp;&nbsp;<a href="<?=SITE_URL?>?user/ask.html" >我的主页</a><span>︱</span>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="SetHomepage()">设为首页</a><span>︱</span>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="addfavorite()">收藏夹</a><span>︱</span>&nbsp;&nbsp;<a href="<?=SITE_URL?>?index/help.html" target="_blank">帮助</a>
</div>
<span class="rit padding-r"><? if(0!=$user['uid']) { ?>您好,<a href="<?=SITE_URL?>?user/default.html"><strong><?=$user['username']?></strong></a><? if($user['newmsg']>0) { ?>| <a id="TopLink_MessageBox" href="<?=SITE_URL?>?message/new.html" target="_blank">您有<span id="MessagesCount" style="color: rgb(255, 0, 0);"><?=$user['newmsg']?></span>条新信息</a> 
 <? } ?>| <a href="<?=SITE_URL?>?user/default.html">个人中心</a> <? if($user['groupid']<=3) { ?>| <a href="<?=SITE_URL?>index.php?admin_main">系统设置</a><? } ?> 
| <a href="<?=SITE_URL?>?user/logout.html">退出</a> <? } else { ?>    您好，欢迎来<?=$setting['site_name']?>！[<a  href="<?=SITE_URL?>?user/login.html">请登录</a>] [<a  href="<?=SITE_URL?>?user/register.html">免费注册</a>]<? } ?></span>&nbsp;
</div>

<div class="top2">
<div class="top2right">
<div class="top2right01 blue">	
<span class="fff">问答</span>
    

</div>
<div class="top2right02">
     
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=zh-Hans"></script>

<form name="searchform"  action="<?=SITE_URL?>?question/search/3.html" method="post">
<input id="kw" type="text" style="vertical-align: middle;" class="ask_input"  value="<? if(isset($word)) { ?><?=$word?><? } ?>" name="word" maxlength="100" tabindex="1"  >
<input type="button" style="vertical-align: middle;" class="btn_search" value="搜 索" onclick="search_submit();" >
<input type="button" style="vertical-align: middle;" class="btn_ask"    value="提 问" onclick="ask_submit();"    >
</form>
</div>
</div>
<a href="<?=SITE_URL?>"><img src="<?=SITE_URL?>css/default/logo.png"></a>
</div>

<div class="top3" id="divMenu">
<ul>
<? if('index/user'==$regular) { ?><li class="current_menu"><? } else { ?><li class="font_white"><? } ?><a href="<?=DY_URL?>user/user" ><strong>首页</strong></a></li>
<? if('index/share'==$regular) { ?><li class="current_menu"><? } else { ?><li class="font_white"><? } ?><a href="<?=DY_URL?>share/share/" ><strong>我要分享</strong></a></li>
<? if('index/default'==$regular) { ?><li class="current_menu"><? } else { ?><li class="font_white"><? } ?><a href="<?=SITE_URL?>" ><strong>我要提问</strong></a></li>
<? if('index/recall'==$regular) { ?><li class="current_menu"><? } else { ?><li class="font_white"><? } ?><a href="<?=DY_URL?>recall/recall_main" ><strong>我要回忆</strong></a></li>
</ul>
</div>

</div>
